export function register(param) {
	return uni.request({
		url: 'https://crop.lxylw.design/cropUser/create/',
		method:"POST",
		sslVerify: false,
		data:param
	});
}

export function login(param) {
	return uni.request({
		url: 'https://crop.lxylw.design/cropUser/login/',
		method:"POST",
		sslVerify: false,
		data:param
	});
}

export function userupdate(param) {
	return uni.request({
		url: 'https://crop.lxylw.design/cropUser/'+param.id+'/',
		method:"PUT",
		sslVerify: false,
		data:param
	});
}

export function userupdateinfo(param) {
	return uni.request({
		url: 'https://crop.lxylw.design/cropUser/'+param.id+'/',
		method:"PATCH",
		sslVerify: false,
		data:param
	});
}

export function sendPhone(Phonenum) {
	return uni.request({
		url: 'https://crop.lxylw.design/verification/send/',
		method:"POST",
		sslVerify: false,
		data:{
			Phonenum
		}
	});
}

export function getUserInfoById(id) {
	return uni.request({
		url: 'https://crop.lxylw.design/cropUser/'+id+'/',
		method:"GET",
		sslVerify: false
	});
}
